package com.gticket.orderservice.service.impl;

import com.gticket.orderservice.mapper.AlipayMapper;
import com.gticket.orderservice.pojo.Alipay;
import com.gticket.orderservice.pojo.Orders;
import com.gticket.orderservice.service.AlipayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 伴你时光尽头
 * @create 2019-11-25 12:53
 */
@Service
public class AlipayServiceImpl implements AlipayService {
    @Autowired
    AlipayMapper alipayMapper;

    /**
     * 根据数据库名查询对应电影院商家的alipay支付宝信息
     *
     * @param orders
     * @return
     */
    @Override
    public Alipay getAlipay(Orders orders) {
        return alipayMapper.getAlipay(orders);
    }
}
